package com.hksj.Intelligentmanagement.mqtt.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Component
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MqttSubscription {

    @AliasFor(annotation = Component.class)
    String value() default "";

    String[] topics() default {};

    int qos() default 0;

    String targetClient() default "default";
}
